<template>
	<view class="content">
		<tn-loading color="#AAAAAA" mode="flower" :show="homeLoading" size="160"></tn-loading>
	</view>
</template>

<script>
	import {
		mapState,
		mapMutations
	} from "vuex";
	export default {
		data() {
			return {}
		},
		computed: {
			...mapState(["homeLoading"]), // 获取全局加载Loading
		},
		onLoad() {
			this.updateHomeLoading({
				homeLoading: true
			});
		},
		methods: {
			...mapMutations([
				'updateHomeLoading'
			]),
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100vw;
		height: 100vh;
		display: flex;
		justify-content: center;
		align-items: center;
	}
</style>